import { get, post, del } from '../plugins/request'
export default {
  // 获取
  getAddressList (params = {}) {
    return get('/addr/list', params)
  },
  // 新增
  addAddress(params){
    return post('/addr/new', params)
  },
  // 更新
  updateAddress(params){
    return post('/addr/update', params)
  },
  // 获取收获地址详情
  getDetailAddress(params){
    return get('/addr/detail', params)
  },
  //获取省市区
  getProCityAndAreaList(params){
    return get('/addr/getProCityAndAreaList', params)
  },
  //设置为默认
  setDefault(params){
    return get('/addr/setDefault', params)
  },
  //删除收货地址
  deleteAddress(params){
    return del('/addr/delete', params)
  },
}